<?php
/**
 * Created by PhpStorm.
 * User: xing.chen
 * Date: 2017/8/24
 * Time: 21:52
 */

namespace xing\sms\src;


interface SmsDriveInterface
{
    public function config($config);
    public function sendText($mobile, $content);
    public function sendTextCode($mobile, $code);
    public function sendSoundCode($mobile, $code);
    public function sendBatchText(array $mobiles, $content);
    public function getResult();

    /**
     * 发送模板消息
     * @param $mobile
     * @param $templateConfig
     * @param array $params
     * @return bool
     * @throws \Exception
     */
    public function sendTemplateSms($mobile, $templateConfig, array $params = []);
}